home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / LOTTORTS / LOTTHUN.LZH / INSTALL.BAT next >
DOS Batch File  |  1992-11-03  |  4KB  |  146 lines

  1. echo off
  2. cls
  3. :HelpCheck
  4.  
  5. if "%1"=="" goto help
  6.  
  7. :FloppyCheck
  8.  
  9. if "%1" == "A:" goto FloppyError
  10. if "%1" == "a:" goto FloppyError
  11. if "%1" == "B:" goto FloppyError
  12. if "%1" == "b:" goto FloppyError
  13.  
  14. :ShowDrive
  15.  
  16. set direct=%2
  17. if "%2"=="" set direct=\LOTTOT
  18. cd %1%direct%
  19. cls
  20. echo  
  21. echo                 LOTTO THUNDER INSTALLATION
  22. echo  
  23. if exist %1thunder.exe goto Exists
  24. echo      The selected path for Lotto Thunder is:
  25. echo  
  26. echo                    %1%direct%
  27. echo  
  28. echo      You may see an "Unable to create directory" message if the
  29. echo      directory is already present on your hard drive. This is only a
  30. echo      warning; the installation will continue successfully.
  31. echo  
  32. echo      Press any key to continue the installation or a ^C (the CONTROL
  33. echo      and C keys at the same time) to abort the installation.
  34.  
  35. pause > nul:
  36.  
  37. echo  
  38.  
  39. :Install
  40.  
  41. md %1%direct%
  42.  
  43. echo      Please wait, copying files ...
  44.  
  45. lottot /e%1%direct%
  46. if errorlevel 1 goto CopyError
  47. cd %1%direct%
  48. %1
  49. set direct=
  50. %1
  51. set direct=
  52.  
  53. echo  
  54. echo      Lotto Thunder   has been installed. Type THUNDER at the
  55. echo                  DOS prompt  to start the  program.  
  56.  
  57. goto Exit
  58.  
  59. :help
  60.  
  61. echo      To install Lotto Thunder on your hard drive type A:
  62. echo      or B: to select the floppy drive containing the Lotto Thunder
  63. echo      distribution disk. Press a carriage return to select this
  64. echo      drive.  Then type INSTALL followed by the hard drive identifier
  65. echo      to receive the program.  For example:
  66. echo  
  67. echo                           A:
  68. echo                           INSTALL C:
  69. echo  
  70. echo      The default directory will be LOTTOT. If you would like to change
  71. echo      the default directory, you may enter the new directory after your
  72. echo      drive identifier.  For example:
  73. echo  
  74. echo                           INSTALL C: \PRO
  75. echo  
  76. echo      The SPACE MUST BE PRESENT BETWEEN THE DRIVE AND DIRECTORY or the
  77. echo      install will not complete successfully.
  78. echo  
  79. echo      The installation can be aborted at any time by pressing a ^C (the
  80. echo      CONTROL and C keys at the same time).
  81.  
  82. goto Exit
  83.  
  84. :FloppyError
  85.  
  86. echo      Lotto Thunder  can only be installed on a hard drive.
  87. echo      The  drive  letter must  be  a  hard  drive  identifier.
  88. echo      Please try again using the letter for your hard drive.
  89.  
  90. goto Exit
  91.  
  92. :Exists
  93. echo  
  94. echo                            *** WARNING ***
  95. echo  
  96. echo      A  previous  copy  of  Lotto  Thunder   exists on
  97. echo      your hard drive in %1%direct%.
  98. echo  
  99. echo      ALL DATABASE FILES WILL BE PRESERVED  
  100. echo  
  101. echo      You will see an "Unable to create directory" message.  This is
  102. echo      only a warning; the installation will continue successfully.
  103. echo  
  104. echo      Press any key to continue the installation or a ^C (the CONTROL
  105. echo      and C keys at the same time) to abort the installation.
  106. pause > nul:
  107. echo  
  108. echo      One Moment...........Checking HARD-DISK.................
  109.  
  110. if exist %1thunder.doc del %1thunder.doc
  111. if exist %1register.doc del %1register.doc
  112. if exist %1ombudsmn.asp del %1ombudsmn.asp
  113. if exist %1packing.lst del %1packing.lst
  114. if exist %1vendor.doc del %1vendor.doc
  115. if exist %1sysop.doc del %1sysop.doc
  116. if exist %1describe.doc del %1describe.doc
  117. if exist %1warranty.doc del %1warranty.doc
  118. if exist %1license.doc del %1license.doc
  119. if exist %1sitelice.doc del %1sitelice.doc
  120. if exist %1trun.bat del %1trun.bat
  121. if exist %1thunder.exe del %1thunder.exe
  122. if exist %1thunder.sys del %1thunder.sys
  123. if exist %1read.me del %1read.me
  124. if exist %1thund1.ovl del %1thund1.ovl
  125. if exist %1thund2.ovl del %1thund2.ovl
  126. if exist %1thund3.ovl del %1thund3.ovl
  127. if exist %1thund4.ovl del %1thund4.ovl
  128. goto Install
  129.  
  130. :CopyError
  131.  
  132. echo  
  133. echo      An error occurred creating the specified directory, or copying one
  134. echo      of  the  Lotto   Thunder   files    to   your   hard   disk.    At
  135. echo      least 1.3 megabytes of disk space must  be  available  to  install
  136. echo      Lotto  Thunder.   CHKDSK  can  be  used  to verify that sufficient
  137. echo      space is available.
  138. echo      If you cannot get the install batch file to work. You can copy the
  139. echo      file LOTTOT.EXE  to your  harddisk. Then type LOTTOT  at  the  DOS
  140. echo      prompt to start the self-extracting process.
  141.  
  142. :Exit
  143.  
  144. echo  
  145. echo  
  146.